<?php
	
	
	
	
	
function _unescapeChars ($s){
	
	//$s=urldecode($s);
	 $s = preg_replace(   '/~jing;/','#' ,$s );
 $s = preg_replace(   '/~n;/',chr(10) ,$s );
 $s = preg_replace(   '/~r;/',chr(13) ,$s );
 $s = preg_replace(   '/~t;/',chr(9) ,$s );
 $s = preg_replace(   '/~s;/',chr(32) ,$s );
 
    $s = preg_replace( '/~125;/' ,'}', $s) ;			   
    $s = preg_replace( '/~123;/','{' , $s) ;
			   
    $s = preg_replace( '/~38;/','&' , $s) ;   
    $s = preg_replace( '/~39;/',"'" , $s) ; 
	
    $s = preg_replace( '/~124;/', '|' , $s) ;
    $s = preg_replace( '/~62;/' , '>' , $s) ;  //htmlspecialchars
    $s = preg_replace( '/~60;/' , '< ', $s) ;  //htmlspecialchars
    $s = preg_replace( '/~34;/' , '"' , $s) ;//'39   #35  htmlspecialchars
    $s = preg_replace( '/~63;/' , '?' ,$s) ;
    $s = preg_replace( '/~42;/' , '*' , $s) ;
    $s = preg_replace( '/~58;/' , ':' , $s) ;
    $s = preg_replace( '/~47;/' , '/' , $s) ;
    $s = preg_replace( '/~92;/' , '\\', $s) ;
    $s = preg_replace( '/~126;/', '~' , $s) ; 
    return $s;
}
//$str='http~58;~47;~47;www.jb51.net~47;article~47;23144.htm';

//echo _unescapeChars($str);
?>